package com.yingxue.lesson.service;

import com.yingxue.lesson.entity.SysUser;
import com.yingxue.lesson.utils.DataResult;
import com.yingxue.lesson.vo.req.UserPageReqVO;
import com.yingxue.lesson.vo.resp.PageVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author lai
 * @version 1.0
 * @date 2021/5/29 22:42
 * @description
 */
@Component
@FeignClient(value = "company-frame")
public interface OpenFeignService {

    @PostMapping("/api/users")
    public DataResult<PageVO<SysUser>> pageInfo(@RequestBody UserPageReqVO vo);


}
